<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>智联同城——小程序管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">

    <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css"  media="all">
    <style type="text/css">
        .tongji-box{
            text-align: center;
            background: #63BA79;
            padding:20px;
            color: #fff;
        }
        .tongji-title{
            font-size: 26px;
        }
        .tongji-num{
            font-size: 24px;
        }
        #chart-box{
            margin-top: 30px;
            height: 500px;
        }
    </style>
</head>
<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">智联同城</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item layui-this"><a href="{:U('Index/index')}">首页</a></li>
            <li class="layui-nav-item"><a href="{:U('InfoCate/index')}">分类信息管理</a></li>
            <li class="layui-nav-item"><a href="{:U('ShopCate/index')}">好店管理</a></li>
            <li class="layui-nav-item"><a href="{:U('Quan/index')}">同城圈管理</a></li>
            <li class="layui-nav-item"><a href="{:U('Member/index')}">用户管理</a></li>
            <!--<li class="layui-nav-item"><a href="{:U('Takeout/index')}">外卖管理</a></li>-->
            <li class="layui-nav-item"><a href="{:U('Home/Index/index')}">切换小程序</a></li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="{$Think.session.wechat.headimg}" class="layui-nav-img">
                    {$Think.session.wechat.nickname}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="{:U('Home/Index/index')}">切换小程序</a></dd>
                    <!-- <dd><a href="">安全设置</a></dd> -->
                </dl>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="{$Think.session.headimgurl}" class="layui-nav-img">
                    {$Think.session.nickname}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="{:U('Home/Public/logout')}">退出登录</a></dd>
                    <!-- <dd><a href="">安全设置</a></dd> -->
                </dl>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item "><a href="{:U('Index/index')}">数据统计</a></li>
                <li class="layui-nav-item">
                    <a class="" href="javascript:;">快速导航管理</a>
                    <dl class="layui-nav-child">
                        <dd class=""><a href="{:U('index/nav')}">&nbsp;&nbsp;&nbsp;&nbsp;快速导航内容管理</a></dd>
                    </dl>
                </li>

                <li class="layui-nav-item ">
                    <a class="" href="javascript:;">店铺装修</a>
                    <dl class="layui-nav-child">
                        <dd class=""><a href="{:U('Adv/shopAdv',array('status'=>0))}">&nbsp;&nbsp;&nbsp;&nbsp;开屏广告</a></dd>
                        <dd class=""><a href="{:U('Adv/homeFlash',array('status'=>1))}">&nbsp;&nbsp;&nbsp;&nbsp;首页轮播展示</a></dd>
                        <dd class=""><a href="{:U('Index/modular2')}">&nbsp;&nbsp;&nbsp;&nbsp;首页信息流推荐管理</a></dd>
                        <dd class=""><a href="{:U('Index/modular')}">&nbsp;&nbsp;&nbsp;&nbsp;首页模块管理</a></dd>
                        <dd class=""><a href="{:U('Index/cateNav')}">&nbsp;&nbsp;&nbsp;&nbsp;首页顶部导航管理</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item ">
                    <a class="" href="javascript:;">商家提现审核</a>
                    <dl class="layui-nav-child">
                        <dd class=""><a href="{:U('Withdraw/index',array('status'=>0))}">待审核</a></dd>
                        <dd><a href="{:U('Withdraw/index',array('status'=>1))}">待打款</a></dd>
                        <dd><a href="{:U('Withdraw/index',array('status'=>2))}">已打款</a></dd>
                        <dd><a href="{:U('Withdraw/index',array('status'=>3))}">失效</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href="{:U('Index/refundlist')}">拼团退款记录</a></li>
                <li class="layui-nav-item"><a href="{:U('Index/gobal')}">全局配置</a></li>
                <li class="layui-nav-item"><a href="{:U('Join/index')}">商家入驻费</a></li>
                <li class="layui-nav-item"><a href="{:U('Top/index')}">置顶收费</a></li>
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">分销中心</a>
                    <dl class="layui-nav-child">
                        <dd class=""><a href="{:U('Index/commission')}">佣金比例设置</a></dd>
                        <dd class="layui-this"><a href="{:U('Commission/set')}">基础设置</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href="{:U('Adv/index')}">广告管理</a></li>
                <li class="layui-nav-item"><a href="{:U('Index/pay')}">支付配置</a></li>
                <li class="layui-nav-item"><a href="{:U('Index/template')}">模板消息设置</a></li>
                <li class="layui-nav-item"><a href="{:U('Index/fabu')}">小程序发布</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding:0 15px;">
            <form class="layui-form" action="">
            <!--<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                <legend>平台抽取比例(%)</legend>
            </fieldset>
            -->

            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                <legend>二级分销设置</legend>
            </fieldset>
                <div class="layui-form-item">
                    <label class="layui-form-label">商品佣金发放</label>
                    <div class="layui-input-block">
                        <input type="radio" lay-filter="good_commission" name="good_commission" value="1" title="支付成功时发放" <if condition="$list['good_commission'] eq 1">checked</if>>
                        <input type="radio" lay-filter="good_commission" name="good_commission" value="2" title="核销成功后发放" <if condition="$list['good_commission'] eq 2">checked</if>>
                    </div>
                </div>
                <div class="layui-form-item jump_type">
                    <label class="layui-form-label">分销等级</label>
                    <div class="layui-input-block">
                        <input type="radio" lay-filter="commission_level" class="" name="commission_level" value="1" title="一级分销" <if condition="$list['commission_level'] eq 1">checked</if>>
                        <input type="radio" lay-filter="commission_level" class="" name="commission_level" value="2" title="二级分销" <if condition="$list['commission_level'] eq 2">checked</if>>
                    </div>
                </div>
                <div class="layui-form-item" style="margin-bottom: 0;">
                    <label class="layui-form-label">佣金提现抽取比例(%)</label>
                    <div class="layui-input-block">
                        <input id="" type="number" name="decimation_ratio" lay-verify="required" placeholder="佣金提现平台抽取比例(0.00~100.00)" autocomplete="off" class="layui-input" value="{$list['decimation_ratio']}" style="width: 300px">
                    </div>
                </div>
                <!--<div class="layui-form-item">
                    <label class="layui-form-label">分类图片</label>
                    <div class="layui-input-block">
                        <div class="layui-upload">
                            <button type="button" class="layui-btn layui-btn-danger" id="test1"><i class="layui-icon"></i>上传图片</button>
                            <div class="layui-upload-list">
                                <img class="layui-upload-img " id="demo1" src="{$vo.imgurl}" style="width: 80px; height: 80px;<if condition="!$vo['imgurl']">display: none;</if>">
                                <p id="demoText"></p>
                            </div>
                        </div>
                        <input type="hidden" id="imgurl" name="imgurl" value="{$vo.imgurl}">
                    </div>
                </div>-->
                <!--<div class="layui-form-item">
                    <label class="layui-form-label">是否显示</label>
                    <div class="layui-input-block">
                        <input type="radio" name="status" lay-verify="status" autocomplete="off" title="显示"  class="layui-input" value="1" <if condition="$vo.status == 1 || $vo.status == ''">checked</if>>
                        <input type="radio" name="status" lay-verify="status" autocomplete="off" title="隐藏"  class="layui-input" value="2" <if condition="$vo.status == 2">checked</if>>
                    </div>
                </div>-->
                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                    <legend>团队分销设置</legend>
                </fieldset>
                <div class="layui-form-item" style="margin-bottom: 0;">
                    <label class="layui-form-label">队长分红百分比</label>
                    <div class="layui-input-block">
                        <input id="" type="number" name="leader_bonus" lay-verify="required" placeholder="团队分红队长分红比例" autocomplete="off" class="layui-input" value="{$list['leader_bonus']}" style="width: 300px">
                    </div>
                </div>
                <div class="layui-form-item" style="margin-bottom: 0;">
                    <label class="layui-form-label">成为队长金额</label>
                    <div class="layui-input-block">
                        <input id="" type="number" name="leader_money" lay-verify="required" placeholder="申请成为队长时付费金额" autocomplete="off" class="layui-input" value="{$list['leader_money']}" style="width: 300px">
                    </div>
                </div>
                <div class="layui-inline" style="margin-bottom: 0;">
                    <label class="layui-form-label">成为队长团队人数</label>
                    <div class="layui-input-block">
                        <input id="" type="number" name="leader_people" lay-verify="required" placeholder="申请成为队长时团队人数" autocomplete="off" class="layui-input" value="{$list['leader_people']}" style="width: 300px">
                    </div>
                </div>
                <div class="layui-inline" style="margin-bottom: 0;">
                    <label class="layui-form-label">成为队长佣金额度</label>
                    <div class="layui-input-block">
                        <input id="" type="number" name="leader_commission" lay-verify="required" placeholder="申请成为队长时佣金达到的额度" autocomplete="off" class="layui-input" value="{$list['leader_commission']}" style="width: 300px">
                    </div>
                </div>
                <div class="layui-form-item" style="margin-bottom: 0;">
                    <label class="layui-form-label">团队分红提现抽取比例(%)</label>
                    <div class="layui-input-block">
                        <input id="" type="number" name="team_withdraw" lay-verify="required" placeholder="团队分红提现抽取比例" autocomplete="off" class="layui-input" value="{$list['team_withdraw']}" style="width: 300px">
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit="*" lay-filter="*">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © 2017-2018 <a href="https://www.58zltc.com" target="_blank">智联同城</a> All Rights Reserved.
    </div>
</div>
<script src="__PUBLIC__/js/echarts.min.js" charset="utf-8"></script>
<script src="__PUBLIC__/layui/layui.js" charset="utf-8"></script>
<script>
    //JavaScript代码区域
    layui.use(['form','upload','element','laypage','layer'], function(){
        var element = layui.element;
        var form = layui.form
                ,$ = layui.jquery
        //监听提交
        form.on('submit(*)', function(data){
            var post_data = data.field;
            post_data.content = layedit.getContent(contIdx);
            $.post("{:U('set')}", post_data, function(e) {
                layer.alert(e.info,function(index){
                    if(e.status == 1){
                        parent.location.reload();
                    }else{
                        layer.close(index);
                    }
                });
            });
            return false;
        });
    });
</script>
</body>
</html>
